import axios from "axios";

// /sc/production/dashboard/personnel/distribution

export const getPersonnel = () => {
  return axios
    .get("/sc/production/dashboard/personnel/distribution")
    .then((res) => {
      return res.data;
    });
};

// /production/dashboard/line/personnel
export const userList = () => {
  return axios.get("/sc/production/dashboard/line/personnel").then((res) => {
    return res.data;
  });
};

// /production/dashboard/task/plan

export const taskPlan = () => {
  return axios.get("/sc/production/dashboard/task/plan").then((res) => {
    return res.data;
  });
};
// /sc/production/dashboard/task/running
export const runningTaskPlan = () => {
  return axios.get("/sc/production/dashboard/task/running").then((res) => {
    return res.data;
  });
};
// production/dashboard/defect/analysis

export const defectAnalysis = () => {
  return axios.get("/sc/production/dashboard/defect/analysis").then((res) => {
    return res.data;
  });
};

// /sc/production/dashboard/statistics

export const homeStatistics = () => {
  return axios.get("/sc/production/dashboard/statistics").then((res) => {
    return res.data;
  });
};

// /sc/production/dashboard/task/filmTasks
export const filmTasks = () => {
  return axios.get("/sc/production/dashboard/task/filmTasks").then((res) => {
    return res.data;
  });
};

// production/dashboard/abnormal/reports
export const errorList = () => {
  return axios.get("/sc/production/dashboard/abnormal/reports").then((res) => {
    return res.data;
  });
};
